window.onload = function(){
	var imgs = document.getElementsByName("x");
	
	for(var i = 0; i < imgs.length; i++){
	
		imgs[i].onmouseover = over;
		imgs[i].onmouseout = out;		
		preloader = new Image;
		preloader.src = imgs[i].src.replace(/normal/, "hover");
	}
	
	var pre_img = new Array();
	
	pre_img[0] = "images/nav_pane_home.gif";
	pre_img[1] = "images/nav_pane_articles.gif";
	pre_img[2] = "images/nav_pane_products.gif";
	pre_img[3] = "images/nav_pane_services.gif";
	pre_img[4] = "images/nav_pane_free_samples.gif";
	pre_img[5] = "images/nav_pane_contact.gif";
	pre_img[6] = "images/footer_home.gif";
	pre_img[7] = "images/footer_articles.gif";
	pre_img[8] = "images/footer_products.gif";
	pre_img[9] = "images/footer_services.gif";
	pre_img[10] = "images/footer_contact.gif";
	pre_img[11] = "images/footer_faq.gif";
	pre_img[12] = "images/footer_free_samples.gif"; 
	pre_img[13] = "images/footer_blank.gif";
	
	var j = 0;
	for(j = 0; j < pre_img.length; j++){
		
		preloader2 = new Image();
		preloader2.src = pre_img[j];
	}
}

